package com.bdq.search.application.service;

import com.bdq.common.entity.common.PageResult;
import com.bdq.common.feign.content.vo.ContentListVO;
import com.bdq.search.application.model.cmd.SearchHistoryDeleteCmd;
import com.bdq.search.application.model.dto.SearchHistoryAppDTO;
import com.bdq.search.application.model.query.SearchPageQry;

import java.util.List;

/**
 * @author malei
 * @date 2024-05-26 16:40
 */
public interface SearchQueryService {

    /**
     * 搜索分页
     *
     * @param qry
     * @return
     */
    PageResult<ContentListVO> searchPage(SearchPageQry qry);

    /**
     * 搜索历史
     *
     * @return
     */
    List<SearchHistoryAppDTO> searchHistory();

    /**
     * 查询搜索历史
     *
     * @param cmd
     * @return
     */
    Boolean searchHistoryDelete(SearchHistoryDeleteCmd cmd);

    /**
     * 清空搜索历史
     *
     * @return
     */
    Boolean searchHistoryClear();
}
